﻿@model StockShark.Models.Order

@{
    ViewBag.Title = ViewBag.Header = "Anulowanie zlecenia";
}


<h3>Jesteś pewen, że chcesz anulować to zlecenie?</h3>
<fieldset>
    <legend>Zlecenie @(Model.BuyNotSell ? "kupna" : "sprzedaży")</legend>
    
    <div class="display-field">
        Rachunek: <strong>@Html.DisplayFor(model => model.BrokerageAccount.Name)</strong>
    </div>
    <div class="display-field">
        Walor: <strong>@Html.DisplayFor(model => model.Paper.Name)</strong>
    </div>    
    <div class="display-field">
        Ilość: <strong>@Html.DisplayFor(model => model.Quantity)</strong>
    </div>  
    <div class="display-field">
        Limit ceny: <strong>@Html.DisplayFor(model => model.PriceLimit) PLN</strong>
    </div>  
    
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Anuluj zlecenie" /> |
        @Html.ActionLink("Wróć", "Orders", "BrokerageAccount", new { name = Model.BrokerageAccount.Name }, null)
    </p>
}
